/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao;
import java.util.List;
import myUtils.page.Result;
import po.User;

/**
 *
 * @author sony
 */
public interface UserDao {

    public Result getNews(int userId, int page);
    void save(User user) throws Exception;
    User getUser(int userId);
    List getOrgsJoined(int userId);
    List getOrgsLeaded(int userId);
    List getNews(int userId);
    List getMyNews(int userId);
    List getUnreadMails(int userId);
    public Result getMyNews(int userId,int page);
}
